﻿using System;
using System.Web.Routing;

namespace MyOrganizer
{
    public class Global : System.Web.HttpApplication
    {

        private void RegisterRoutes(RouteCollection Routes)
        {
            Routes.MapPageRoute("Login", "Login", "~/Default.aspx");
            Routes.MapPageRoute("Home", "Home", "~/Pages/Home.aspx");
            Routes.MapPageRoute("Movies", "Movies", "~/Pages/Movies.aspx");
            Routes.MapPageRoute("TvShows", "TvShows", "~/Pages/TvShows.aspx");
            Routes.MapPageRoute("Books", "Books", "~/Pages/Books.aspx");
            Routes.MapPageRoute("Account", "Account", "~/Pages/AccountInfo.aspx");
            Routes.MapPageRoute("Calendar", "Calendar", "~/Pages/Calendar.aspx");
        }

        protected void Application_Start(object sender, EventArgs e)
        {
            RegisterRoutes(RouteTable.Routes);
        }

        protected void Session_Start(object sender, EventArgs e)
        {

        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {

        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {

        }

        protected void Application_Error(object sender, EventArgs e)
        {

        }

        protected void Session_End(object sender, EventArgs e)
        {

        }

        protected void Application_End(object sender, EventArgs e)
        {

        }
    }
}